<?php

namespace App\Pay\Providers;


use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
class PayProvider extends ServiceProvider
{
    protected $namespace = 'App\Pay\Controllers';
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        require __DIR__.'/../routes.php';
        $this->mapWebRoutes();
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {

    }
    /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::middleware('web')
            ->namespace($this->namespace)
            ->group(__DIR__."/../routes.php");
        //这边可以在分为权限的比方说
//        Route::middleware('permission')
//            ->namespace($this->namespace)
//            ->group(__DIR__."/../auth_routes.php");  //需要权限的路由
    }
}
